﻿<Page x:Class="EffectsTester.GrayScale"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:fx="http://LearnWPF.com/Effects"
    xmlns:local="clr-namespace:EffectsTester"
      Title="GrayScale">
    <Grid>
        <Border>
            <Border.Effect>
                <fx:GrayScaleEffect DesaturationFactor="{Binding ElementName=desatFactor, Path=Value}" />
            </Border.Effect>
            <local:TestControl />
        </Border>
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="Desaturation" />
            <Slider x:Name="desatFactor" Minimum="0" Maximum="1" Width="100" />
        </StackPanel>
    </Grid>
</Page>
